/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightTransferProtect;
import com.sasis.dao.FlightTransferProtectDao;
import com.sasis.service.FlightTransferProtectManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightTransferProtectManagerImpl extends BaseManager implements FlightTransferProtectManager {
    private FlightTransferProtectDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightTransferProtectDao(FlightTransferProtectDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightTransferProtectManager#getFlightTransferProtects(com.sasis.model.FlightTransferProtect)
     */
    public List getFlightTransferProtects(final FlightTransferProtect flightTransferProtect) {
        return dao.getFlightTransferProtects(flightTransferProtect);
    }

    /**
     * @see com.sasis.service.FlightTransferProtectManager#getFlightTransferProtect(String id)
     */
    public FlightTransferProtect getFlightTransferProtect(final String id) {
        return dao.getFlightTransferProtect(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightTransferProtectManager#saveFlightTransferProtect(FlightTransferProtect flightTransferProtect)
     */
    public int saveFlightTransferProtect(FlightTransferProtect flightTransferProtect) {
       return dao.saveFlightTransferProtect(flightTransferProtect);
    }

    /**
     * @see com.sasis.service.FlightTransferProtectManager#removeFlightTransferProtect(String id)
     */
    public void removeFlightTransferProtect(FlightTransferProtect flightTransferProtect) {
        dao.removeFlightTransferProtect( flightTransferProtect);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
